package com.example.openguass.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.openguass.entity.OrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.openguass.vo.OrderDetailPageVO;
import com.example.openguass.vo.OrderDetailVO;
import com.example.openguass.vo.TopDish;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xa
 * @since 2022-11-17
 */
public interface OrderDetailService extends IService<OrderDetail> {
    Boolean insert(OrderDetailVO orderDetailVO);

    Boolean update(OrderDetailVO orderDetailVO);

    IPage<OrderDetail> findPage(OrderDetailPageVO pageVO);

    List<OrderDetail> getByOrdersId(String orderId);

    Boolean removeByOrderId(String orderId);

    List<TopDish> getTopDish();
}
